package com.itzhigui.mapper;

import com.itzhigui.entity.Product;
import org.apache.ibatis.annotations.Param;

/**
 * @author java1412
 * @since 2023-11-15 10:25:25
 */
public interface ProductMapper {

    /**
     * 根据商品编号查询商品信息
     *
     * @param id
     * @return
     */
    public Product findById(@Param("id") Integer id);

    /**
     * 更新库存
     *
     * @param product
     * @return
     */
    public Integer updateStock(Product product);
}
